/*
 * @Author: your name
 * @Date: 2020-07-25 22:05:49
 * @LastEditTime: 2020-08-07 10:44:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \stroage_server\platform\region_mgnt\region_mgnt.h
 */
#ifndef _REGION_MGNT_H
#define _REGION_MGNT_H
#include "global_common.h"
#include "xeSqlite.h"

typedef struct region_res {
    char sid[HISOME_LEN_64];
    int  opttype;

	char region_name[HISOME_LEN_128];
	char  parent_indexcode[HISOME_LEN_128];
	char  indexcode[HISOME_LEN_128];
    
    char collector_gts[HISOME_LEN_128];
}t_region_res;

typedef struct region_query_result{	
	int region_num;
	vector_t *p_vector;//t_file_opt_info
}t_region_query_result;



extern char *tb_uuid4_make_cstr(char uuid_cstr[37], const char* name);
extern int region_mgnt_opt(e_opt_type opttype,
    t_region_res *region_in,t_region_query_result *result);
void region_setup(void *data);
void region_query_all(void *data);
#endif